// -----------------------------
// Author: 		Dhaenens Gert	
// Creation: 	2/17/2015 11:26:40 PM				
// -----------------------------

#include "GameState.h"

GameState::GameState()
	: BaseState("GameState")
	, m_lpHeartSprite(nullptr)
{
}

GameState::~GameState()
{
	delete m_lpHeartSprite;
}

void GameState::OnPushOrSwap()
{
	Flow::Engine::ClearColor = Flow::Color::Grey;

	m_lpHeartSprite = new Flow::Sprite(_T(".\\Sprites\\Heart.png"));
}

void GameState::Update(Float deltaTime)
{

}
void GameState::Draw(Flow::SpriteBatch* lpSpriteBatch)
{
	Flow::Vector2 center(Flow::Engine::Window->GetWidth() / 2.0f, Flow::Engine::Window->GetHeight() / 2.0f);

	lpSpriteBatch->Draw(m_lpHeartSprite, center);
}